import request from '../utils/request'

export function baseInfo(params) {
  return request.ajax({
      url: `/appointment/baseInfo`,
      method: 'post',
      loading:true,
      params
  })
} 
export function listCanAppointmentTimeFrame(params) {
  return request.ajax({
      url: `/appointment/listCanAppointmentTimeFrame`,
      method: 'post',
      loading:true,
      params
  })
} 
export function listCanAppointmentTechnician(params) {
  return request.ajax({
      url: `/appointment/listCanAppointmentTechnician`,
      method: 'post',
      loading:true,
      params
  })
} 
export function appointment(params) {
  return request.ajax({
      url: `/appointment/appointment`,
      method: 'post',
      loading:true,
      params
  })
} 
export function listRecord(params) {
  return request.ajax({
      url: `/appointment/listRecord`,
      method: 'post',
      loading:true,
      params
  })
}   
export function cancelAppointment(params) {
  return request.ajax({
      url: `/appointment/cancelAppointment`,
      method: 'post',
      loading:true,
      params
  })
}
export function showAppointment(params) {
  return request.ajax({
      url: `/appointment/showAppointment`,
      method: 'post',
      params
  })
}

export function getTip(params) {
  return request.ajax({
      url: `/doorserver/getDoorConfig`,
      method: 'post',
      params
  })
}